#!/usr/bin/env python
import sys
sys.path.append("../python")
import edbcli

if __name__ == "__main__":

	edb = edbcli.Client(["127.0.0.1:11911"])
	
	r = edb.query("SELECT * FROM test_domain;",[])
	if len(r) != 1:
		print("FAILURE")
	else:
		if int(r[0]["x"]) != 4:
			print("FAILURE")
		else:
			print("OK")
	
	